<?php
/**
 * Created by PhpStorm.
 * User: work
 * Date: 18-7-22
 * Time: 下午3:16
 */

namespace PddWechat\Models\User\Dao;


use Dai\Framework\Base\BaseDao;
use Dai\Framework\Library\Log;
use PddWechat\Models\User\DataObject\UserOpLogDo;

class UserOpLogDao extends BaseDao
{
    /**
     * @param UserOpLogDo $userOpLogDo
     * @return UserOpLogDo
     */
    public function insert( UserOpLogDo $userOpLogDo )
    {
        $userOpLogDo -> id  = $this->execute("user.user_op_log.insert", $userOpLogDo);
        Log::info("UserOpLogDo insert into ". json_encode($userOpLogDo, JSON_UNESCAPED_UNICODE));
        return $userOpLogDo;
    }
}